package com.hengpeng.itfin.persist.impl;

import org.springframework.stereotype.Repository;

import com.hengpeng.common.persist.AbstractDao;
import com.hengpeng.common.persist.query.DynamicQuery;
import com.hengpeng.itfin.persist.PartnerDao;
import com.hengpeng.itfinbase.persist.Partner;
import com.hengpeng.itfinbase.persist.Partner.PartnerType;
@Repository
public class PartnerDaoImpl extends AbstractDao<Partner> implements PartnerDao
{

	@Override
	public Partner getPartnerByType(PartnerType partnerType)
	{
		DynamicQuery query = new DynamicQuery(Partner.class);
		query.eq("partnerType", partnerType);
		return super.getSingleByDynamicQuery(query);
	}
}
